home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
os2
/
ue311gcc.zip
/
MAKEUNIX
< prev
next >
Wrap
Text File
|
1992-12-29
|
2KB
|
98 lines
# Unix makefile for
# MicroEMACS 3.11
# (C)Copyright 1990 by Daniel Lawrence
# all rights reserved
#
# Made into a real Unix makefile by Bob Friesenhahn, thefuzz on BIX
# Yuck ...
SHELL=/bin/sh
# Install directory. Don't include a last '/' on the directory name
INSTDIR= /usr/local/uemacs
INSTALL= cp
# Compiler flags and defines. Don't forget to edit estruct.h!
CFLAGS= -O
# Lint
LINT = lint
LARGS = -uvx
.SUFFIXES : .o .c .ln
.c.ln :
$(LINT) -c $(LARGS) $(CFLAGS) $<
# Header files ...
HFILES = estruct.h edef.h efunc.h epath.h ebind.h eproto.h
# Object files ...
F1 = basic.o bind.o buffer.o
F2 = char.o crypt.o display.o dolock.o
F3 = eval.o exec.o file.o
F4 = fileio.o unix.o input.o
F5 = isearch.o line.o lock.o
F6 = main.o mouse.o screen.o
F7 = random.o region.o search.o
F8 = tags.o window.o word.o
# Equivalent lint files ...
LF1 = basic.ln bind.ln buffer.ln
LF2 = char.ln crypt.ln display.ln dolock.ln
LF3 = eval.ln exec.ln file.ln
LF4 = fileio.ln unix.ln input.ln
LF5 = isearch.ln line.ln lock.ln
LF6 = main.ln mouse.ln screen.ln
LF7 = random.ln region.ln search.ln
LF8 = tags.ln window.ln word.ln
# product list
all: emacs
OFILES = $(F1) $(F2) $(F3) $(F4) $(F5) $(F6) $(F7) $(F8)
LFILES = $(LF1) $(LF2) $(LF3) $(LF4) $(LF5) $(LF6) $(LF7) $(LF8)
emacs: $(OFILES)
$(CC) $(CFLAGS) $(OFILES) -lcurses -lc -o emacs
lint: $(LFILES)
$(LINT) $(LARGS) $(LFILES) -lcurses -lc
# Dependencies ...
basic.o basic.ln: basic.c $(HFILES)
bind.o bind.ln: bind.c $(HFILES)
buffer.o buffer.ln: buffer.c $(HFILES)
char.o char.ln: char.c $(HFILES)
crypt.o crypt.ln: crypt.c $(HFILES)
cmdfix.o cmdfix.ln: cmdfix.c $(HFILES)
display.o display.ln: display.c $(HFILES)
dolock.o dolock.ln: dolock.c $(HFILES)
eval.o eval.ln: eval.c $(HFILES) evar.h
exec.o exec.ln: exec.c $(HFILES)
file.o file.ln: file.c $(HFILES)
fileio.o fileio.ln: fileio.c $(HFILES)
input.o input.ln: input.c $(HFILES)
isearch.o isearch.ln: isearch.c $(HFILES)
line.o line.ln: line.c $(HFILES)
lock.o lock.ln: lock.c $(HFILES)
main.o main.ln: main.c $(HFILES)
mouse.o mouse.ln: mouse.c $(HFILES)
unix.o unix.ln: unix.c $(HFILES)
random.o random.ln: random.c $(HFILES)
region.o region.ln: region.c $(HFILES)
screen.o screen.ln: screen.c $(HFILES)
search.o search.ln: search.c $(HFILES)
tags.o tags.ln: tags.c $(HFILES)
window.o window.ln: window.c $(HFILES)
word.o word.ln: word.c $(HFILES)
clean:
rm -f *.o emacs core *.ln
install:
strip emacs
cp emacs $(INSTDIR)/emacs